package br.com.skytef.entity;

public class UserEntity {

	private int userId;
	private boolean active;
	private String login;
	private String password;
	private String name;
	private String post;
	private int accessLevel;

	public UserEntity() {
		userId = 0;
		active = false;
		login = "";
		password = "";
		name = "";
		post = "";
		accessLevel = 0;
	}

	/*
	 * Setters and getters
	 */

	/**
	 * @return the userId
	 */
	public int getUserId() {
		return userId;
	}

	/**
	 * @param userId
	 *            the userId to set
	 */
	public void setUserId(int userId) {
		this.userId = userId;
	}

	/**
	 * @return the active
	 */
	public boolean isActive() {
		return active;
	}

	/**
	 * @param active
	 *            the active to set
	 */
	public void setActive(boolean active) {
		this.active = active;
	}

	/**
	 * @return the login
	 */
	public String getLogin() {
		if (login == null)
			return "";
		else
			return login;
	}

	/**
	 * @param login
	 *            the login to set
	 */
	public void setLogin(String login) {
		this.login = login;
	}

	/**
	 * @return the password
	 */
	public String getPassword() {
		if (password == null)
			return "";
		else
			return password;
	}

	/**
	 * @param password
	 *            the password to set
	 */
	public void setPassword(String password) {
		this.password = password;
	}

	/**
	 * @return the name
	 */
	public String getName() {
		if (name == null)
			return "";
		else
			return name;
	}

	/**
	 * @param name
	 *            the name to set
	 */
	public void setName(String name) {
		this.name = name;
	}

	/**
	 * @return the post
	 */
	public String getPost() {
		if (post == null)
			return "";
		else
			return post;
	}

	/**
	 * @param post
	 *            the post to set
	 */
	public void setPost(String post) {
		this.post = post;
	}

	/**
	 * @return the accessLevel
	 */
	public int getAccessLevel() {
		return accessLevel;
	}

	/**
	 * @param accessLevel
	 *            the accessLevel to set
	 */
	public void setAccessLevel(int accessLevel) {
		this.accessLevel = accessLevel;
	}

}
